home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / python-central.postinst < prev    next >
Text File  |  2009-10-11  |  503b  |  34 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. case "$1" in
  6.     configure)
  7.     if [ -f /var/lib/pycentral/delayed-pkgs ]; then
  8.         err=
  9.         for p in $(cat /var/lib/pycentral/delayed-pkgs); do
  10.         if pycentral pkginstall $p; then
  11.             sed -i "/^$p$/d" /var/lib/pycentral/delayed-pkgs
  12.         else
  13.             err="$err $p"
  14.         fi
  15.         done
  16.         [ -z "$err" ] || exit 1
  17.     fi
  18.     ;;
  19.  
  20.     abort-upgrade|abort-remove|abort-deconfigure)
  21.     ;;
  22.  
  23.     *)
  24.         echo "postinst called with unknown argument \`$1'" >&2
  25.         exit 1
  26.     ;;
  27. esac
  28.  
  29.  
  30.  
  31. exit 0
  32.  
  33.  
  34.